package com.example.javaairportflightanalysis.service.impl;



import com.example.javaairportflightanalysis.dao.PermissionMapper;
import com.example.javaairportflightanalysis.domin.userpojo.Permission;
import com.example.javaairportflightanalysis.service.PermissionService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (Permission)表服务实现类

 */
@Service
public class PermissionServiceImpl implements PermissionService {

    @Resource
    PermissionMapper permissionMapper;

    @Override
    public List<Permission> findAllPermission() {
        return permissionMapper.findAllPermission();
    }

    @Override
    public void addPermission(Permission permission) {
        permissionMapper.addPermission(permission);
    }

    @Override
    public void deletePermission(Integer id) {
        permissionMapper.deletePermission(id);
    }

    @Override
    public void updatePermission(Permission permission) {
        System.out.println(permission);
        permissionMapper.updatePermission(permission);
    }
}

